﻿using System;
using System.Collections.Generic;

namespace SW.Lite.Model
{
    [Serializable]
    public class ModelModel : IModel
    {
        /// <summary>
        /// </summary>
        public ModelModel()
        {
        }

        /// <summary>
        /// </summary>
        /// <param name="id">ID</param>
        /// <param name="code">编码</param>
        /// <param name="title">标题</param>
        /// <param name="description">描述</param>
        public ModelModel(int id, string code, string title, string description)
        {
            Id = id;
            Code = code;
            Title = title;
            Description = description;
        }

        #region 属性

        /// <summary>
        ///     ID
        /// </summary>
        public int Id { get; set; }


        /// <summary>
        ///     编码
        /// </summary>
        public string Code { get; set; }


        /// <summary>
        ///     标题
        /// </summary>
        public string Title { get; set; }


        /// <summary>
        ///     描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        ///     字段
        /// </summary>
        public ICollection<FieldModel> Fields { get; set; }

        #endregion
    }
}